package com.ljx.itbbs.server.mall.service.lock;

import java.util.concurrent.TimeUnit;

/**
 * @Author: LiJunXi
 * @Description: 自定义锁接口
 * @Date: 2024-03-30  22:16
 */
public interface ILock {

    Boolean tryLock(Long time, TimeUnit timeUnit);

    void unLock();

}
